package com.stylefeng.guns.modular.vpn_server_info.entity;

import com.stylefeng.guns.modular.vpn.validate.Trimmed;
import lombok.Getter;
import lombok.Setter;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;

@Setter
@Getter
public class VpnServerDTO {
    private Integer serverId;
    @Trimmed
    @NotNull(message = "服务器地址不能为空")
    private String serverIp;
    @Trimmed
    @NotNull(message = "监听端口不能为空")
    private Integer serverPort;
    @Trimmed
    @NotNull(message = "简体名称不能为空")
    private String serverName;
    @Trimmed
    @NotNull(message = "英文名称不能为空")
    private String serverName2;//英文
    @Trimmed
    @NotNull(message = "繁体名称不能为空")
    private String serverName3;//繁体
    @Trimmed
    @NotNull(message = "公钥不能为空")
    private String pubKey;
    private Integer status;

    @Trimmed
    @NotNull(message = "开始网段不能为空")
    private String beginSegment;
    @Trimmed
    @NotNull(message = "结束网段不能为空")
    private String endSegment;
    //线路类别
    private Integer serverType;
    private MultipartFile file;

    //地区级别
    @NotNull(message = "地区级别字段不能为空")
    private Integer areaLevel;


}
